﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Models
{
    //订单详情表
    public class Order
    {
        
        private int id;//订单详情表id
        private string orders;//订单号
        private DateTime dateNow;//成交时间
       // private string proName;//商品名称
       // private string speci;//商品规格
        private int userID;//用户id
        private int state;//订单状态 0 支付 1 未支付
        private decimal sum;//总价
        

        public Order() { }

        public Order(string orders, DateTime dateNow, int userID, int state)
        {
            this.orders = orders;
            this.dateNow = dateNow;
            this.userID = userID;
            this.state = state;
        }

        public Order(int id, string orders, DateTime dateNow, int userID, int state)
        {
            this.id = id;
            this.orders = orders;
            this.dateNow = dateNow;
            this.userID = userID;
            this.state = state;
        }

        public Order(string orders, DateTime dateNow, int userID, int state, decimal sum)
        {
            this.orders = orders;
            this.dateNow = dateNow;
            this.userID = userID;
            this.state = state;
            this.sum = sum;
        }

        public int Id { get => id; set => id = value; }
        public string Orders { get => orders; set => orders = value; }
        public DateTime DateNow { get => dateNow; set => dateNow = value; }
        public int UserID { get => userID; set => userID = value; }
        public int State { get => state; set => state = value; }
        public decimal Sum { get => sum; set => sum = value; }
    }
}
